$OpenBSD: patch-source4_torture_local_nss_tests_c,v 1.1 2016/04/12 17:42:09 jca Exp $

Workaround lack of getpwent_r(3)/getgrent_r(3).

--- source4/torture/local/nss_tests.c.orig	Sun Apr 10 15:36:54 2016
+++ source4/torture/local/nss_tests.c	Sun Apr 10 15:37:50 2016
@@ -25,6 +25,13 @@
 #include "torture/local/proto.h"
 #include "lib/replace/system/passwd.h"
 
+#ifndef HAVE_GETPWENT_R
+#define getpwent_r(pwdst, buf, buflen, pwdstp)		ENOSYS
+#endif
+#ifndef HAVE_GETGRENT_R
+#define getgrent_r(grdst, buf, buflen, grdstp)		ENOSYS
+#endif
+
 static bool copy_passwd(struct torture_context *tctx,
 			const struct passwd *pwd,
 			struct passwd *p)
